
// 分类管理1

"use strict";

module.exports = app => {
  const { router, controller } = app;
  router.get("/tube/admin/queryAll", controller.cClasses.pc_c_queryClassAll); // 针对分类页面的分类查询
  router.get("/tube/admin/queryClassAll", controller.cClasses.pc_c_queryAll); // 针对商品页面的分类查询

  router.get("/tube/admin/queryClasses", controller.cClasses.pc_c_query);
  router.post("/tube/admin/createClasses", controller.cClasses.pc_c_create);
  router.put("/tube/admin/updateClasses", controller.cClasses.pc_c_update);
  router.delete("/tube/admin/deleteClasses", controller.cClasses.pc_c_delete);

  router.get("/tube/wa/queryAllClasses", controller.cClasses.wa_c_query);

   //依据二级分类查询商品
  router.get("/tube/wa/querySecondProducts", controller.cClasses.wa_c_second_class_goods);

};
